<?php namespace app\home\controller;

class Content extends Common{
    //动作
    public function index($aid){
	   //内容
	   $articleData = Db::table('article')
		   ->join('article_data','aid','=','article_aid')->where('aid',$aid)->first();
	   $articleData['tag'] = Db::table('article_tag')
		   ->join('tag','tag_tid','=','tid')
		   ->where('article_aid',$aid)->lists('tid,tname');
	   //p($articleData);
	   View::With('articleData',$articleData);
	   //头部数据
	   $headConf = ['title'=>$articleData['title']];
	   View::with('headConf',$headConf);
	   return view();
	   return view();
    }
}